package com.peycard.persistence.entities;

import java.io.Serializable;
import javax.persistence.*;

import java.sql.Timestamp;


/**
 * The persistent class for the TOKEN_PORTAL database table.
 * 
 */
@Entity
@Table(name="TOKEN_PORTAL")
@NamedQuery(name="findToken",query="SELECT t FROM TokenPortal t WHERE t.idAdminSysUser = :idAdminSysUser")
public class TokenPortal implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="ID_TPORTAL_GENERATOR", sequenceName="ID_TPORTAL_GENERATOR")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="ID_TPORTAL_GENERATOR")
	@Column(name="ID_TOKEN_PORTAL")
	private long idTokenPortal;

	@Column(name="ADD_DATE")
	private Timestamp addDate;

	@Column(name="EXPIRATION_DATE")
	private Timestamp expirationDate;

	@Column(name="ID_ADMIN_SYS_USER")
	private long idAdminSysUser;

	@Column(name="TOKEN")
	private String token;

    public TokenPortal() {
    }

	public long getIdTokenPortal() {
		return this.idTokenPortal;
	}

	public void setIdTokenPortal(long idTokenPortal) {
		this.idTokenPortal = idTokenPortal;
	}

	public Timestamp getAddDate() {
		return this.addDate;
	}

	public void setAddDate(Timestamp addDate) {
		this.addDate = addDate;
	}

	public Timestamp getExpirationDate() {
		return this.expirationDate;
	}

	public void setExpirationDate(Timestamp expirationDate) {
		this.expirationDate = expirationDate;
	}

	public long getIdAdminSysUser() {
		return this.idAdminSysUser;
	}

	public void setIdAdminSysUser(long idAdminSysUser) {
		this.idAdminSysUser = idAdminSysUser;
	}

	public String getToken() {
		return this.token;
	}

	public void setToken(String token) {
		this.token = token;
	}

}